package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单商品快照
 */
@ApiModel(value = "com-lanchetech-entity-Snapshot")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Snapshot implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 商品spu id
     */
    @ApiModelProperty(value = "商品spu id")
    private Long spuId;

    /**
     * 快照版本
     */
    @ApiModelProperty(value = "快照版本")
    private String version;

    /**
     * 快照内容JSON
     */
    @ApiModelProperty(value = "快照内容JSON")
    private String content;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;
}